package com.luych.toolbox.data.service.dao;

import com.luych.toolbox.data.service.entity.DataUpgrade;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface DataUpgradeDao extends JpaRepository<DataUpgrade, String>, JpaSpecificationExecutor<DataUpgrade> {

    List<DataUpgrade> findByDataProjectId(String dataProjectId);

    int countByDataProjectId(String dataProjectId);

    void deleteByDataProjectId(String dataProjectId);

}